package jaoso.framework.security;

/**
 * DOCUMENT ME!
 * 
 * @author $author$
 * @version $Revision: 1.1 $
 */
public class ProtectedResource
{
    /** xml tag constants */
    public static final String PROPERTY_PROTECTED_RESOURCE = "ProtectedResource";

    /** DOCUMENT ME! */
    public static final String PROPERTY_BOX = "box";

    /** DOCUMENT ME! */
    public static final String PROPERTY_URL = "url";

    /** DOCUMENT ME! */
    public static final String PROPERTY_DESC = "desc";

    /** DOCUMENT ME! */
    private String box;

    /** description */
    private String desc;

    /** url of the protected resource, such as "post.go" */
    private String url;

    /**
     * Creates a new ProtectedResource object.
     * 
     * @param arg0
     *            DOCUMENT ME!
     * @param arg1
     *            DOCUMENT ME!
     * @param arg2
     *            DOCUMENT ME!
     */
    public ProtectedResource(final String arg0, final String arg1,
            final String arg2)
    {
        this.box = arg0;
        this.url = arg2;
        this.desc = arg1;
    }

    /**
     * set box
     * 
     * @param arg0
     *            box
     */
    public final void setBox(final String arg0)
    {
        this.box = arg0;
    }

    /**
     * DOCUMENT ME!
     * 
     * @return DOCUMENT ME!
     */
    public final String getBox()
    {
        return box;
    }

    /**
     * DOCUMENT ME!
     * 
     * @param arg0
     *            DOCUMENT ME!
     */
    public final void setDesc(final String arg0)
    {
        this.desc = arg0;
    }

    /**
     * DOCUMENT ME!
     * 
     * @return DOCUMENT ME!
     */
    public final String getDesc()
    {
        return desc;
    }

    /**
     * set url
     * 
     * @param arg0
     *            url
     */
    public final void setUrl(final String arg0)
    {
        this.url = arg0;
    }

    /**
     * DOCUMENT ME!
     * 
     * @return DOCUMENT ME!
     */
    public final String getUrl()
    {
        return url;
    }

    /**
     * DOCUMENT ME!
     * 
     * @return DOCUMENT ME!
     */
    public final String toString()
    {
        return box + "\n" + desc + "\n" + url;
    }
}